<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
	<f:view contentType="text/html"	/>

<h:head>
	<title>Sistema de Gestão da Associação Mãe Auxiliadora</title>
	<h:outputStylesheet library="css" name="grid.css"/>
	<h:outputStylesheet library="css" name="style.css"/>

</h:head>

<h:body>
		<div id="blocoCabecalho">
			<div class="container" >
				<h:graphicImage library="imagens" 
						name="ama.png" 
						id="logoCompany"/>
			</div>
			<div id="usuarioLogado">
				<h:outputText 
				   rendered="#{usuarioLogado.login!=null}"
				   value="Usuário: #{usuarioLogado.login}"
				    />
			</div>
			<br /><br />
			<h:form >
			<div id="usuarioLogado">
				
					<h:commandLink  value="Sair" rendered="#{usuarioLogado.login!=null}"
					 	            action="#{usuarioLogado.logout}"  title="Sair do Sistema"/>
				
			</div>
			</h:form>
		</div>
		<div id="blocoConteudo">
			<div class="container">
				 <p:layoutUnit position="center" resizable="false" closable="false" collapsible="false">  
    			    <ui:include src="/menu.xhtml" />  
        			<ui:insert name="body" />       	
					<ui:insert name="conteudo"/>
    			</p:layoutUnit>  
			
			</div>
		</div>
	</h:body>
	<p:layoutUnit position="south" size="30" resizable="false" closable="false" collapsible="false" style="align: right">  
     <div id="blocoRodape">
			<p>Fucapi - POO II 2013. 
				Laurinex da Silva Souza</p>
	</div>
</p:layoutUnit>
</html>
